package com.tedu.service.Impl;

import com.tedu.dao.OrdersDao;
import com.tedu.pojo.Orders;
import com.tedu.service.OrdersService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

public class OrdersServiceImpl implements OrdersService {
    @Autowired
    private OrdersDao ordersDao;
    @Override
    public List<Orders> selectOrders(Orders order) {
        return ordersDao.selectOrders(order);
    }

    @Override
    public int insertOrder(Orders order) {
        return ordersDao.insertOrder(order);
    }

    @Override
    public int updateOrder(Orders order) {
        return ordersDao.updateOrder(order);
    }

    @Override
    public int deleteById(Long... ids) {
        return ordersDao.deleteById(1L,2L,3L);
    }
}
